# coding:utf-8
while True:
    # 从控制台读取用户名
    username = input("请输入用户名：")
    password = input("请输入密码：")
    print(username, password, sep="\n")
    if username == "admin" and password == "123456":
        print("登录成功，正在进入聊天界面...")
        break
    else:
        print("用户名或密码错误")
